import request from '@/utils/request'

// 店铺列表
export function selectShopMarketingRank(query) {
  return request({
    url: '/marketing/BiShopMarketingDwd/selectShopMarketingRank',
    method: 'get',
    params: query
  })
}


// 多商品单指标对比
export function selectShopStatistics(query) {
  return request({
    url: '/marketing/BiShopMarketingDwd/selectShopStatistics',
    method: 'get',
    params: query
  })
}

// 多商品单指标对比
export function comparisonStatisticsPro(query) {
  return request({
    url: '/marketing/BiProductMarketingDwd/comparisonStatistics',
    method: 'get',
    params: query
  })
}
// 单品多指标趋势图
export function selectProductStatistics(query) {
  return request({
    url: '/marketing/BiProductMarketingDwd/selectProductStatistics',
    method: 'get',
    params: query
  })
}
// 数据排行
export function selectProductMarketingRank(query) {
  return request({
    url: '/marketing/BiProductMarketingDwd/selectProductMarketingRank',
    method: 'get',
    params: query
  })
}
// 数据级别排行
export function selectGradeList(query) {
  return request({
    url: '/marketing/BiProductMarketingDwd/selectGradeList',
    method: 'get',
    params: query
  })
}
// 数据总览
export function selectProductData(query) {
  return request({
    url: '/marketing/BiProductMarketingDwd/selectProductData',
    method: 'get',
    params: query
  })
}
// 查询单品营销数据日报列表
export function updateLabel(query) {
  return request({
    url: '/marketing/BiProductMarketingDwd/updateLabel',
    method: 'get',
    params: query
  })
}
// 查询单品营销数据日报列表
export function listBiProductMarketingDwd(query) {
  return request({
    url: '/marketing/BiProductMarketingDwd/list',
    method: 'get',
    params: query
  })
}
// 查询单品营销数据日报详细
export function getBiProductMarketingDwd(id) {
  return request({
    url: '/marketing/BiProductMarketingDwd/' + id,
    method: 'get'
  })
}

// 新增单品营销数据日报
export function addBiProductMarketingDwd(data) {
  return request({
    url: '/marketing/BiProductMarketingDwd',
    method: 'post',
    data: data
  })
}

// 修改单品营销数据日报
export function updateBiProductMarketingDwd(data) {
  return request({
    url: '/marketing/BiProductMarketingDwd',
    method: 'put',
    data: data
  })
}

// 删除单品营销数据日报
export function delBiProductMarketingDwd(id) {
  return request({
    url: '/marketing/BiProductMarketingDwd/' + id,
    method: 'delete'
  })
}
